package com.tt.fashionWebSite.domain;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by isoft-work 5 on 12/25/2014.
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "ket_qua_tu_van")
@NamedQueries({
      @NamedQuery(name = "ketQuaTuVan.getInfoByUser", query = "SELECT k FROM KetQuaTuVan k WHERE k.soDoCoThe.thongTinThanhVien.maTV = :maTV AND k.gioiTinhTuVan = :gender"),
})
public class KetQuaTuVan implements Serializable {
   public static final String GET_INFO_BY_USER = "ketQuaTuVan.getInfoByUser";

   @Id
   @GeneratedValue(strategy = GenerationType.IDENTITY)
   @Column(name = "MA_TU_VAN")
   private Long maTuVan;

   @ManyToOne
   @JoinColumn(name = "MA_SD_COTHE")
   private SoDoCoThe soDoCoThe;

   @Column(name = "TAP_GIA_THIET")
   private String tapGiaThiet;

   @Column(name = "TAP_KET_LUAN")
   private String tapKetLuan;

   @Column(name = "GIOI_TINH_TV")
   private String gioiTinhTuVan;

   public Long getMaTuVan() {
      return maTuVan;
   }

   public void setMaTuVan(Long maTuVan) {
      this.maTuVan = maTuVan;
   }

   public SoDoCoThe getSoDoCoThe() {
      return soDoCoThe;
   }

   public void setSoDoCoThe(SoDoCoThe soDoCoThe) {
      this.soDoCoThe = soDoCoThe;
   }

   public String getTapGiaThiet() {
      return tapGiaThiet;
   }

   public void setTapGiaThiet(String tapGiaThiet) {
      this.tapGiaThiet = tapGiaThiet;
   }

   public String getTapKetLuan() {
      return tapKetLuan;
   }

   public void setTapKetLuan(String tapKetLuan) {
      this.tapKetLuan = tapKetLuan;
   }

   public String getGioiTinhTuVan() {
      return gioiTinhTuVan;
   }

   public void setGioiTinhTuVan(String gioiTinhTuVan) {
      this.gioiTinhTuVan = gioiTinhTuVan;
   }
}
